<?php
/**
 * Joomla! 1.5 component jhtraq
 *
 * @version $Id: view.html.php 2010-03-09 08:28:06 svn $
 * @author JHShop
 * @package Joomla
 * @subpackage jhtraq
 * @license GNU/GPL
 *
 * Traq type system for Joomla
 *
 * This component file was created using the Joomla Component Creator by Not Web Design
 * http://www.notwebdesign.com/joomla_component_creator/
 *
 */

$model =& JhtraqHelper::getModel('jhtraq');
$project = JRequest::getVar('project');
$thisproject = $model->getProjectBySlug($project);
$db =& JFactory::getDBO();
$db->setQuery("Select version from #__jhtraq_versions where project_id='".(int)$thisproject->id."' and latest = '1'");
echo $db->loadResult();
 $mainframe = JFactory::getApplication();
 $mainframe->close();